/*
 * Copyright 2020 tu.cn All right reserved. This software is the
 * confidential and proprietary information of tu.cn ("Confidential
 * Information"). You shall not disclose such Confidential Information and shall
 * use it only in accordance with the terms of the license agreement you entered
 * into with Tu.cn
 */
package com.onedec.message.serviceImpl;

import com.onedec.message.entity.OnedecEmp;
import com.onedec.message.mapper.OnedecEmpMapper;
import com.onedec.message.service.EmpService;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.GetMapping;

import javax.annotation.Resource;
import java.util.List;

/**
 * @author 31014
 * @date 2020/7/13 11:11
 */
@Service
public class EmpServiceImpl implements EmpService {
    @Resource
    private OnedecEmpMapper onedecEmpMapper;

    public OnedecEmp SelectEmpById(Integer id) {
        final OnedecEmp emp = onedecEmpMapper.selectByPrimaryKey(id);
        return emp;
    }

    public List<OnedecEmp> selectGroupEmp(Integer id) {
        final List<OnedecEmp> emps = onedecEmpMapper.selectEmpByGroupId(id);
        return emps;
    }
}